package org.jclip.examples.helloworld;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.util.HashMap;

import javax.swing.AbstractAction;
import javax.swing.JButton;

import org.jclip.runtime.JavaClientPage;

public class HelloWorldPage extends JavaClientPage {
	
	HashMap<String,Object> hm ;
	public HelloWorldPage(final HashMap<String,Object> hm) {
		super(hm);
		setLayout(new BorderLayout());
		final JButton button = new JButton(new AbstractAction("Go to page 2") {
			
			@Override
			public void actionPerformed(ActionEvent arg0) {

				browser.go("http://localhost/org.jclip.examples.helloworld/bin/#org.jclip.examples.helloworld.HelloWorld2Page", hm);
			}
		});
		
		add(button, BorderLayout.CENTER);
	}
	
}
